package com.ztom.core.io

import java.io.InputStream
import java.net.URL

/**
 * @author ZhangTao
 */
class UrlResource(private val url: URL) : Resource {

    override fun getInputStream(): InputStream {
        return url.openStream()
    }
}